namespace Framework.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class EditBetBetDetail : DbMigration
    {
        public override void Up()
        {
            AlterColumn("Bet", "ScoreHomeBefore", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("Bet", "ScoreAwayBefore", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("Bet", "ScoreHomeAfter", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("Bet", "ScoreAwayAfter", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("Bet", "CreatedTime", c => c.DateTime());
            AlterColumn("BetDetail", "OddsHome", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsAway", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsDraw", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "RateUnderOver", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsUnder", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsOver", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsExactScore", c => c.Decimal(precision: 18, scale: 2));
            AlterColumn("BetDetail", "CreatedTime", c => c.DateTime());
        }
        
        public override void Down()
        {
            AlterColumn("BetDetail", "CreatedTime", c => c.DateTime(nullable: false));
            AlterColumn("BetDetail", "OddsExactScore", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsOver", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsUnder", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("BetDetail", "RateUnderOver", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsDraw", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsAway", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("BetDetail", "OddsHome", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("Bet", "CreatedTime", c => c.DateTime(nullable: false));
            AlterColumn("Bet", "ScoreAwayAfter", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("Bet", "ScoreHomeAfter", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("Bet", "ScoreAwayBefore", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AlterColumn("Bet", "ScoreHomeBefore", c => c.Decimal(nullable: false, precision: 18, scale: 2));
        }
    }
}
